home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Looking for semaphore example.
- Date: Sat, 30 Mar 96 21:11:29 GMT
- Organization: none
- Message-ID: <828220289snz@genesis.demon.co.uk>
- References: <4jc5hd$1vlv@ilx018.iil.intel.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4jc5hd$1vlv@ilx018.iil.intel.com>
- mstahl@f8acc1
- "He Digs Deepest who Deepest Digs. -- M.Stahl, Sort PE,
- " writes:
-
- >Hi -
- >I'm looking for a simple example of implementation of semaphore in C .
-
- Not possible - the C language doesn't support semaphores. You'll have
- to go beyond the C language to get this.
-
- >(my platform is a SUN workstation).
- >Nothing fancy - just the very basic kind: need to keep one child process
- >from reading/writing a common file when a 2nd process is dealing with
- >that file.
-
- You need to system specific facilities provided by your implemenation.
- Those are probably Unix specific in this case so try comp.unix.programmer.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-